from selenium.webdriver.common.by import By
import time
from autoframe.common.base import Base

class LoginPage(Base):
    def input_username(self,username):
        self.find_element((By.NAME,'username')).send_keys(username)

    def input_password(self,password):
        self.find_element(('name','password')).send_keys(password)

    def remember(self):
        self.click(('id','remwmber'))

    def loginbtn(self):
        self.find_element((By.CLASS_NAME,"loginbtn")).click()

if __name__ == '__main__':
    lo1=LoginPage('chrome')
    lo1.get('https://ecshop.test2.shopex123.com/user.php')
    lo1.input_username('fine1')
    lo1.input_password('123456')
    lo1.loginbtn()
    lo1.quit()



